package com.lixl.collection;

public class HashCodeDemo {

	public static void main(String[] args) {
		Object obj = new Object();
		System.out.println(obj.hashCode());
		HashCodeDemo h1 = new HashCodeDemo();
		System.out.println(h1.hashCode());
		
		HashCodeDemo h2 = new HashCodeDemo();
		System.out.println(h2.hashCode());
		
		System.out.println(h1.equals(h2));
		
		HashCodeDemo h3 = h1;
		System.out.println(h3.hashCode());
		
		
	}
	
	@Override
	public boolean equals(Object obj) {
		return super.equals(obj);
	}
	
	@Override
	public int hashCode() {
		return super.hashCode();
	}

}
